<template>
  <crumbs class="c-list" :bread="bread">
    <template #contentTopRight>
      <slot name="contentTopRight"></slot>
    </template>

    <template #content>
      <slot name="content"></slot>
    </template>

    <template #footer>
      <div class="footer-div"><slot name="pagination"></slot></div>
    </template>
  </crumbs>
</template>

<script lang="ts">
import { Component, Vue, Prop } from "vue-property-decorator";
import Crumbs from "@/components/Crumbs/index.vue";
import CContentTop from "@/components/CContentTop.vue";

@Component({
  name: "CList",
  components: {
    Crumbs,
    CContentTop
  }
})
export default class CList extends Vue {
  @Prop({
    default: () => []
  })
  bread!: Common.CBread[];

  @Prop({
    default: true
  })
  contentTop!: boolean;
}
</script>

<style lang="less" scoped>
@import "~@/assets/style/mixin.less";
.c-list {
  position: relative;
  padding-bottom: 50px;

  .footer-div {
    box-shadow: 0px -1px 0px 0px #d9d9d9;
    padding: 6px 24px;
    display: flex;
    justify-content: flex-end;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
  }
}
</style>
